package com.example.demo.spring;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author wangsl
 * @date 2020/7/5 22:43
 * <p>
 * Description:
 */
public class Bird {

    @PostConstruct
    public void initial(){
        System.out.println("--------Bird initial----------");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("---------Bird destroy--------------------");
    }

}
